<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>sgp4oo: Fichero Fuente sgp4unit.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generado por Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Página&nbsp;principal</span></a></li>
      <li><a href="annotated.html"><span>Clases</span></a></li>
      <li class="current"><a href="files.html"><span>Archivos</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;de&nbsp;archivos</span></a></li>
      <li><a href="globals.html"><span>Miembros&nbsp;de&nbsp;los&nbsp;ficheros</span></a></li>
    </ul>
  </div>
<h1>sgp4unit.h</h1><a href="sgp4unit_8h.html">Ir a la documentación de este archivo.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * Sgp4unit.h</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> *  Created on: 25/04/2012</span>
<a name="l00005"></a>00005 <span class="comment"> *      Author: ubuntu</span>
<a name="l00006"></a>00006 <span class="comment"> */</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef SGP4UNIT_H_</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define SGP4UNIT_H_</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="elsetrec_8h.html">elsetrec.h</a>&quot;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;<a class="code" href="sgp4__math_8h.html">sgp4_math.h</a>&quot;</span>    <span class="comment">// for several misc routines</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;<a class="code" href="sgp4__date_8h.html">sgp4_date.h</a>&quot;</span>    <span class="comment">// for several misc routines</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;<a class="code" href="gravconsttype_8h.html">gravconsttype.h</a>&quot;</span>
<a name="l00014"></a><a class="code" href="class_sgp4unit.html">00014</a> <span class="keyword">class </span><a class="code" href="class_sgp4unit.html">Sgp4unit</a> {
<a name="l00015"></a>00015 <span class="keyword">private</span>:
<a name="l00016"></a>00016 <a class="code" href="classelsetrec.html">elsetrec</a> * satrec;
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="keyword">public</span>:
<a name="l00020"></a>00020         <a class="code" href="class_sgp4unit.html#a1931b20197903e79ce10c4961724563b" title="Construye un nuevo objeto Sgp4unit.">Sgp4unit</a>();
<a name="l00021"></a>00021         <span class="keywordtype">bool</span> <a class="code" href="class_sgp4unit.html#ad084f0a30db5884099f45453ff92c05a" title="Inicializa las variables del sistema sgp4.">sgp4init</a>
<a name="l00022"></a>00022              (
<a name="l00023"></a>00023                <a class="code" href="gravconsttype_8h.html#a8b910c09824c4a9d8365e717c31dda5e">gravconsttype</a> whichconst,  <span class="keywordtype">char</span> opsmode
<a name="l00024"></a>00024              );
<a name="l00025"></a>00025 
<a name="l00026"></a>00026         <span class="keywordtype">bool</span> <a class="code" href="class_sgp4unit.html#af2778fc2c0f0ebc1f171cf05e6a6eb06">sgp4</a>
<a name="l00027"></a>00027              ( <a class="code" href="gravconsttype_8h.html#a8b910c09824c4a9d8365e717c31dda5e">gravconsttype</a> whichconst, <span class="keywordtype">double</span> tsince,
<a name="l00028"></a>00028                <span class="keywordtype">double</span> r[3],  <span class="keywordtype">double</span> v[3]
<a name="l00029"></a>00029              );
<a name="l00030"></a>00030         <a class="code" href="classelsetrec.html">elsetrec</a>* <a class="code" href="class_sgp4unit.html#a3c168167d71c870963aacb6819b2a15a" title="Devuelve el objeto elsetrec que contiene sgp4unit.">getSatrec</a>();
<a name="l00031"></a>00031 <span class="keyword">private</span>:
<a name="l00032"></a>00032  <span class="keywordtype">void</span> dpper
<a name="l00033"></a>00033      (                          <span class="keywordtype">double</span> inclo,
<a name="l00034"></a>00034                         <span class="keywordtype">char</span> init,
<a name="l00035"></a>00035                         <span class="keywordtype">double</span>&amp; ep,    <span class="keywordtype">double</span>&amp; inclp, <span class="keywordtype">double</span>&amp; nodep,  <span class="keywordtype">double</span>&amp; argpp, <span class="keywordtype">double</span>&amp; mp
<a name="l00036"></a>00036 
<a name="l00037"></a>00037 
<a name="l00038"></a>00038      );
<a name="l00039"></a>00039 
<a name="l00040"></a>00040  <span class="keywordtype">void</span> dscom
<a name="l00041"></a>00041      (
<a name="l00042"></a>00042       <span class="keywordtype">double</span> epoch, <span class="keywordtype">double</span> tc,<span class="keywordtype">double</span>&amp; snodm, <span class="keywordtype">double</span>&amp; cnodm, <span class="keywordtype">double</span>&amp; sinim,  <span class="keywordtype">double</span>&amp; cosim,
<a name="l00043"></a>00043       <span class="keywordtype">double</span>&amp; sinomm,<span class="keywordtype">double</span>&amp; cosomm,<span class="keywordtype">double</span>&amp; day,   <span class="keywordtype">double</span>&amp; em,<span class="keywordtype">double</span>&amp; emsq,  <span class="keywordtype">double</span>&amp; gam,
<a name="l00044"></a>00044       <span class="keywordtype">double</span>&amp; rtemsq,<span class="keywordtype">double</span>&amp; s1,    <span class="keywordtype">double</span>&amp; s2,    <span class="keywordtype">double</span>&amp; s3,     <span class="keywordtype">double</span>&amp; s4,  <span class="keywordtype">double</span>&amp; s5,
<a name="l00045"></a>00045       <span class="keywordtype">double</span>&amp; s6,    <span class="keywordtype">double</span>&amp; s7,    <span class="keywordtype">double</span>&amp; ss1,    <span class="keywordtype">double</span>&amp; ss2,   <span class="keywordtype">double</span>&amp; ss3,
<a name="l00046"></a>00046                         <span class="keywordtype">double</span>&amp; ss4,   <span class="keywordtype">double</span>&amp; ss5,   <span class="keywordtype">double</span>&amp; ss6,    <span class="keywordtype">double</span>&amp; ss7,   <span class="keywordtype">double</span>&amp; sz1,
<a name="l00047"></a>00047                         <span class="keywordtype">double</span>&amp; sz2,   <span class="keywordtype">double</span>&amp; sz3,   <span class="keywordtype">double</span>&amp; sz11,   <span class="keywordtype">double</span>&amp; sz12,  <span class="keywordtype">double</span>&amp; sz13,
<a name="l00048"></a>00048                         <span class="keywordtype">double</span>&amp; sz21,  <span class="keywordtype">double</span>&amp; sz22,  <span class="keywordtype">double</span>&amp; sz23,   <span class="keywordtype">double</span>&amp; sz31,  <span class="keywordtype">double</span>&amp; sz32,
<a name="l00049"></a>00049                         <span class="keywordtype">double</span>&amp; sz33,  <span class="keywordtype">double</span>&amp; nm,    <span class="keywordtype">double</span>&amp; z1,     <span class="keywordtype">double</span>&amp; z2,    <span class="keywordtype">double</span>&amp; z3,
<a name="l00050"></a>00050                         <span class="keywordtype">double</span>&amp; z11,   <span class="keywordtype">double</span>&amp; z12,   <span class="keywordtype">double</span>&amp; z13,    <span class="keywordtype">double</span>&amp; z21,   <span class="keywordtype">double</span>&amp; z22,
<a name="l00051"></a>00051                         <span class="keywordtype">double</span>&amp; z23,   <span class="keywordtype">double</span>&amp; z31,   <span class="keywordtype">double</span>&amp; z32,    <span class="keywordtype">double</span>&amp; z33
<a name="l00052"></a>00052      );
<a name="l00053"></a>00053 
<a name="l00054"></a>00054  <span class="keywordtype">void</span> dsinit
<a name="l00055"></a>00055      (
<a name="l00056"></a>00056                  <a class="code" href="gravconsttype_8h.html#a8b910c09824c4a9d8365e717c31dda5e">gravconsttype</a> whichconst,
<a name="l00057"></a>00057                         <span class="keywordtype">double</span> cosim,  <span class="keywordtype">double</span> emsq,   <span class="keywordtype">double</span> s1,     <span class="keywordtype">double</span> s2,
<a name="l00058"></a>00058                         <span class="keywordtype">double</span> s3,     <span class="keywordtype">double</span> s4,     <span class="keywordtype">double</span> s5,      <span class="keywordtype">double</span> sinim,  <span class="keywordtype">double</span> ss1,
<a name="l00059"></a>00059                         <span class="keywordtype">double</span> ss2,    <span class="keywordtype">double</span> ss3,    <span class="keywordtype">double</span> ss4,     <span class="keywordtype">double</span> ss5,    <span class="keywordtype">double</span> sz1,
<a name="l00060"></a>00060                         <span class="keywordtype">double</span> sz3,    <span class="keywordtype">double</span> sz11,   <span class="keywordtype">double</span> sz13,    <span class="keywordtype">double</span> sz21,   <span class="keywordtype">double</span> sz23,
<a name="l00061"></a>00061                         <span class="keywordtype">double</span> sz31,   <span class="keywordtype">double</span> sz33,   <span class="keywordtype">double</span> tc,      <span class="keywordtype">double</span> xpidot, <span class="keywordtype">double</span> z1,
<a name="l00062"></a>00062                         <span class="keywordtype">double</span> z3,      <span class="keywordtype">double</span> z11,    <span class="keywordtype">double</span> z13,
<a name="l00063"></a>00063                         <span class="keywordtype">double</span> z21,    <span class="keywordtype">double</span> z23,    <span class="keywordtype">double</span> z31,     <span class="keywordtype">double</span> z33,    <span class="keywordtype">double</span> eccsq,
<a name="l00064"></a>00064                         <span class="keywordtype">double</span>&amp; em,    <span class="keywordtype">double</span>&amp; argpm,  <span class="keywordtype">double</span>&amp; inclm, <span class="keywordtype">double</span>&amp; mm,
<a name="l00065"></a>00065                         <span class="keywordtype">double</span>&amp; nm,    <span class="keywordtype">double</span>&amp; nodem, <span class="keywordtype">double</span>&amp; dndt
<a name="l00066"></a>00066      );
<a name="l00067"></a>00067 
<a name="l00068"></a>00068  <span class="keywordtype">void</span> dspace
<a name="l00069"></a>00069      (
<a name="l00070"></a>00070                  <span class="keywordtype">double</span> tc,
<a name="l00071"></a>00071                                         <span class="keywordtype">double</span>&amp; em,    <span class="keywordtype">double</span>&amp; argpm,  <span class="keywordtype">double</span>&amp; inclm,
<a name="l00072"></a>00072                                         <span class="keywordtype">double</span>&amp; mm,    <span class="keywordtype">double</span>&amp; nodem,  <span class="keywordtype">double</span>&amp; dndt,  <span class="keywordtype">double</span>&amp; nm
<a name="l00073"></a>00073      );
<a name="l00074"></a>00074 
<a name="l00075"></a>00075  <span class="keywordtype">void</span> initl
<a name="l00076"></a>00076      (
<a name="l00077"></a>00077        <span class="keywordtype">int</span> satn,      <a class="code" href="gravconsttype_8h.html#a8b910c09824c4a9d8365e717c31dda5e">gravconsttype</a> whichconst,
<a name="l00078"></a>00078        <span class="keywordtype">double</span> epoch,<span class="keywordtype">double</span>&amp; ainv,
<a name="l00079"></a>00079        <span class="keywordtype">double</span>&amp; ao,  <span class="keywordtype">double</span>&amp; con42, <span class="keywordtype">double</span>&amp; cosio,
<a name="l00080"></a>00080        <span class="keywordtype">double</span>&amp; cosio2,<span class="keywordtype">double</span>&amp; eccsq, <span class="keywordtype">double</span>&amp; omeosq, <span class="keywordtype">double</span>&amp; posq,
<a name="l00081"></a>00081        <span class="keywordtype">double</span>&amp; rp,    <span class="keywordtype">double</span>&amp; rteosq,<span class="keywordtype">double</span>&amp; sinio
<a name="l00082"></a>00082      );
<a name="l00083"></a>00083 };
<a name="l00084"></a>00084 
<a name="l00085"></a>00085 
<a name="l00086"></a>00086 
<a name="l00087"></a>00087 <span class="preprocessor">#endif </span><span class="comment">/* SGP4UNIT_H_ */</span>
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generado el Tue May 22 09:43:43 2012 para sgp4oo por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
